set dex2jar_path=tools\dex2java\dex2jar-0.0.7-SNAPSHOT
set jarname=classes.dex.dex2jar.jar

set dex2jar_path=tools\dex2java\dex2jar-0.0.9.9
set jarname=classes_dex2jar.jar

rmdir /S /Q target
rmdir /S /Q tmp
mkdir target
mkdir target\resources
del base.apk

rename *.apk base.apk
start tools\apk2android\apktool.bat d -f base.apk target\resources

tools\unzip.exe base.apk -d tmp
copy /Y tmp\classes.dex %dex2jar_path%

cd %dex2jar_path%
start dex2jar.bat classes.dex
ping 127.0.0.1 -n 10
cd ..\..\..\
start end.bat

pause